import Vue from 'vue'
import App from './App.vue'
//三级联动组件--全局组件
import TypeNav from '@/views/Home/TypeNav'
//轮播图
import Carsousel from '@/components/Carousel'
//引入分页器
import Pagination from '@/components/Pagination';
Vue.component(TypeNav.name,TypeNav);
Vue.component(Carsousel.name,Carsousel);
Vue.component( Pagination.name, Pagination);
//引入路由
import router from '@/router';
//引入仓库
import store from './store';
//引入mock
import '@/mock/mockServe';
//引入swiper样式
import 'swiper/css/swiper.css'


Vue.config.productionTip = false

//测试
// import {reqGetSearchInfo} from '@/api';
// console.log(reqGetSearchInfo({}));
new Vue({
  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$bus = this;
  },
  router,
  store
}).$mount('#app')
